package com.bdweb.dao.impl;

import cn.hutool.core.collection.SpliteratorUtil;
import com.bdweb.dao.MedialDao;
import com.bdweb.model.WEAK;
import com.bdweb.service.WeakService;
import com.bdweb.service.impl.WeakServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class MedialDaoimpl implements MedialDao {

    @Autowired
    private WeakServiceImpl weakService ;
    @Override
    public List<WEAK> listMedial() {
        List<WEAK> allWeak = weakService.findAllWeak();
     //   System.out.println(allWeak);
        return allWeak;
    }
}
